﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="F601_Cong_viec_du_an.aspx.cs" Inherits="DanhMuc_F601_Cong_viec_du_an" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
<!-- Lọc dữ liệu công việc dự án -->
    <tr>
		    <td class="cssPageTitleBG" colspan="5">
		        <asp:label id="v_lbl_loc_cv_da" runat="server" CssClass="cssPageTitle" Text="Lọc dữ liệu công việc - dự án"/>
		    </td>
	</tr>
    <tr>
        <td colspan="2" align="right">
            <asp:DropDownList id="m_cbo_loai_du_an_s" runat="server" CssClass="cssDorpdownlist" OnSelectedIndexChanged="m_cbo_loai_du_an_s_SelectedIndexChanged" >
            </asp:DropDownList>
        </td>
        <td colspan="3" align="left">
            <asp:button id="m_cmd_loc_du_lieu" CssClass="cssButton" runat="server" 
                Width="98px" Text="Lọc dữ liệu" Height="22px" onclick="m_cmd_loc_du_lieu_Click" 
             />&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:button id="m_cmd_xem_toan_bo" CssClass="cssButton" runat="server" 
                Width="98px" Text="Xem toàn bộ" Height="23px" 
                onclick="m_cmd_xem_toan_bo_Click" /> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
            </td>
    </tr>

<!-- Cập nhật công việc, dự án -->
    <tr>
		    <td class="cssPageTitleBG" colspan="5">
		        <asp:label id="lbl_Nhan_cv_da" runat="server" CssClass="cssPageTitle" Text="Cập nhật Công việc - dự án"/>
		    </td>
	</tr>
            <tr>
            <td colspan="4" align="left">               
		        <asp:label id="m_lbl_thong_bao" runat="server" CssClass="cssThongBao"/>
            </td>
        </tr>
     <tr>
		    <td align="right">
			    <asp:label id="Label4" CssClass="cssManField" runat="server" 
                    Text="Tên công việc"/>
		    </td>
		    <td>
			    <asp:textbox id="m_txt_ten_cong_viec" CssClass="cssTextBox"  runat="server" 
                    MaxLength="64" Width="96%" />
		    </td>
            <td align="right">
                    <asp:label id="m_lbl_loai_du_an" CssClass="cssManField" runat="server" 
                Text="Loại dự án" />
		            </td>
                <td align="left" colspan="2">
                    <asp:DropDownList id="m_cbo_loai_du_an" runat="server" 
                        CssClass="cssDorpdownlist"  >
                    </asp:DropDownList>
                    </td>
		</tr>
         <tr>
		    <td align="right" class="style2">
			    <asp:label id="Label2" CssClass="cssManField" runat="server" 
                    Text="Đơn vị tính"/>
		    </td>
		    <td>
			    <asp:DropDownList id="m_cbo_don_vi_tinh" runat="server" CssClass="cssDorpdownlist"  >
                    </asp:DropDownList>
		    </td>
            <td align="right" class="style2">
			    <asp:label id="Label3" CssClass="cssManField" runat="server" 
                    Text="Hệ số mặc định"/>
		    </td>
		    <td>
			    <asp:textbox id="m_txt_hs_default" CssClass="cssTextBox"  runat="server" 
                    MaxLength="64" Width="96%" />
		    </td>
        </tr>
         <tr>
        <td align="right" class="styl2">
             <asp:label id="Label12" CssClass="cssManField" runat="server" Text="Ghi chú"/>
        </td>
        <td colspan="3">
			    <asp:textbox id="m_txt_ghi_chu" CssClass="cssTextBox"  runat="server"  Width="98%" TextMode="MultiLine" />
		</td>
    </tr>
    <tr>
                     <td align="center" colspan="4"> 
			            <asp:button id="m_cmd_them_moi" accessKey="l" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Thêm mới" 
                                    Height="23px" onclick="m_cmd_them_moi_Click" /> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
			            <asp:button id="m_cmd_cap_nhat" accessKey="x" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Cập nhật" Height="22px" 
                             onclick="m_cmd_cap_nhat_Click" Visible="false"/>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:button id="m_cmd_xoa_trang" accessKey="v" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Xóa trắng" Height="22px" onclick="m_cmd_xoa_trang_Click" 
                           />
		             </td>
        </tr>
    <tr>
		    <td class="cssPageTitleBG" colspan="5">
		        <asp:label id="m_lbl_nhan" runat="server" CssClass="cssPageTitle" Text="Kết quả lọc dữ liệu"/>
		    </td>
	</tr>
    <tr>
        <td align="center" colspan="4" style="height:450px;" valign="top">
            <asp:GridView ID="m_grv_cong_viec_du_an" runat="server" DataKeyNames="ID"
                AutoGenerateColumns="False" Width="98%" BackColor="White" BorderColor="#999999" 
                BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                onrowdeleting="m_grv_cong_viec_du_an_RowDeleting" 
                onrowupdating="m_grv_cong_viec_du_an_RowUpdating" GridLines="Vertical">
                <AlternatingRowStyle BackColor="#DCDCDC" />
                <Columns>
                    <asp:TemplateField HeaderText="STT" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="4%">
                        <ItemTemplate>
                            <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>

<ItemStyle HorizontalAlign="Center" Width="4%"></ItemStyle>
                    </asp:TemplateField>
                    <asp:BoundField DataField="TEN_CONG_VIEC" HeaderText="Tên công việc" />
                    <asp:TemplateField HeaderText="Loại dự án" ItemStyle-Width="12%">
                        <ItemTemplate>
                            <%# mapping_loai_du_an_by_id(Eval("ID_LOAI_DU_AN"))%>
                        </ItemTemplate>

<ItemStyle Width="12%"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Đơn vị tính" ItemStyle-Width="10%">
                        <ItemTemplate>
                            <%# mapping_don_vi_tinh_by_id(Eval("MA_DON_VI_TINH"))%>
                        </ItemTemplate>

<ItemStyle Width="10%"></ItemStyle>
                    </asp:TemplateField>
                    <asp:BoundField DataField="HE_SO_DEFAULT" HeaderText="Hệ số mặc định" 
                        DataFormatString="{0:N0}" ItemStyle-HorizontalAlign="Center" 
                        ItemStyle-Width="10%" >
<ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="GHI_CHU" HeaderText="Ghi chú" />
                    <asp:TemplateField HeaderText="Sửa" ItemStyle-Width="4%" >
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_chi_tiet" CommandName="Update" ToolTip="Sửa" CausesValidation="false"><center><img src="../Images/document-edit.png" width="20px" height="20px" alt="Sửa" /></center></asp:LinkButton>
                        </ItemTemplate>

<ItemStyle Width="4%"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa" ItemStyle-Width="4%">
                         <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_xoa" CommandName="Delete" OnClientClick="return confirm ('Các dữ liệu liên quan cũng sẽ bị xóa. Bạn có thực sự muốn xóa ?')" ToolTip="Xóa dự án này" CausesValidation="false"><center><img src="../Images/del.png" width="20px" height="20px" alt="Xóa" /></center></asp:LinkButton>
                        </ItemTemplate>

<ItemStyle Width="4%"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
             
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#0000A9" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#000065" />
             
            </asp:GridView>
        </td>
    </tr>
</table>
</asp:Content>

